<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
<head>
<html:base />
<title><bean:message key="Application.Name"/> ~ <bean:message key="Assistants.list"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/formas.css" rel="stylesheet" type="text/css">
<link href="css/calendar.css" rel="stylesheet" type="text/css">
<logic:present name="req_msg">
	<script>
		alert("<bean:write name='req_msg'/>");
	</script>
</logic:present>
</head>
<body>
	<table cellpadding="0" cellspacing="0" class="formas">
		<tr> 
		    <td> 
			    <table cellpadding="0" cellspacing="0" class="barraNavegacion">
					<tr>
						<td><html:link action="/academy_welcome?action=selectAcademy" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="AcademyWelcome.Init"/></html:link>
								<html:link action="/academy_list" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.AcademyHeader"/></html:link>
								<html:link action="/draft_list.do?action=listDrafts" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Menu.Draft"/></html:link>
								<html:link action="/draft_edit?action=editDraft" styleClass="barraNavegacion"><img src="images/icn_liga.gif" border="0"><bean:message key="Agreement.draftEdit"/></html:link>
						</td>
					</tr>
				</table>
				<table cellpadding="0" cellspacing="0" class="titulo">
	        		<tr> 
	          			<td class="iconos_imgs"> <a href="#"><img src="images/icn_correo.gif" alt="Correo-e" width="18" height="18" border="0"></a></td>
	          			<td class="txt_titulo"><bean:message key="Assistants"/></td>
	        		</tr>
	      		</table>
	      		<table cellpadding="0" cellspacing="2" class="info_formas">				
				<tr>
					<td colspan="4" class="formas-encabezado"><bean:message key="Document.draftData"/></td>
				</tr>					
        		<tr> 
					<td colspan="2">
						<table cellpadding="0" cellspacing="2" class="info_titulo">
							<tr> 
								<td  class=""><strong><bean:message key="Document.draft"/></strong></td>
								<td class=""><bean:write name="bean_minuta" property="int_tk"/></td>
							</tr>
							<tr> 
								<td class=""><strong><bean:message key="Document.content"/></strong></td>
								<td class=""><bean:write name="bean_minuta" property="str_asunto"/></td>
							</tr>
						</table>
					</td>
				</tr>					
			</table>
			<table cellpadding="0" cellspacing="2" class="info_titulo">
				<tr>					
					<td colspan="3" align="right">
						<logic:equal name="ses_usuario" property="per_minutas" value="2">
							<input  type="button"  <logic:equal name="bean_minuta" property="str_cerrada" value="1">disabled="true"</logic:equal> value=<bean:message key="Application.Insert"/> onclick= "location.href='assistant_add.do'" />
						</logic:equal>
					</td>
				</tr>
				<tr>
					<td colspan="3" class="formas-encabezado"></td>
				</tr>
	        	<tr> 
	         		<td class="formas-encabezado"><bean:message key="Document.number"/></td>
		          	<td  class="formas-encabezado"><bean:message key="Assistants.name"/></td>	          	
		          	<td  class="formas-encabezado"><bean:message key="DraftList.Actions"/></td>
	        	</tr>
	        	<logic:iterate id="asistentes" name="assistant_lst"  indexId="int_i" scope="request">
	        	<tr class="info_formas"> 
		        	<td class="formas-backcolor1" align="center"><bean:write name="asistentes" property="int_id"/>
		          	<td class="formas-backcolor1"><bean:write name="asistentes" property="str_responsable"/></td>
		         	<td class="formas-backcolor1">
		         		<logic:equal name="ses_usuario" property="per_minutas" value="2">
			         		<logic:equal name="bean_minuta" property="str_cerrada" value="1">
				         		<html:img page="/images/icn_eliminar.gif" border="0" width="24" height="24"/>
				         	</logic:equal>
				         	<logic:equal name="bean_minuta" property="str_cerrada" value="0">
				         		<html:link action="/assistant_delete.do" name="asistentes" property="map_id"><html:img page="/images/icn_eliminar.gif" border="0" width="24" height="24"/></html:link>
				         	</logic:equal>
				         </logic:equal>
			         </td>
	        	 </tr>
	        	 </logic:iterate> 
			</table>
		  </td>
		</tr>		
  	</table>
</body>
</html:html>
